Source
Get-ChildItem -Filter "<pattern>" -Recurse $pwd
to do something with the found files/folders, e.g. deleting
Get-ChildItem -Filter "<pattern>" -Recurse $pwd | ForEach-Object { rm -r $_ }
Source
Get-ChildItem -Filter "<pattern>" -Recurse $pwd
to do something with the found files/folders, e.g. deleting
Get-ChildItem -Filter "<pattern>" -Recurse $pwd | ForEach-Object { rm -r $_ }